package model.environmentConfig;

import javax.xml.bind.annotation.*;

@XmlRootElement(name="softwarePackage")
public class SoftwarePackage
{
	
	String name;
	String version;
	
	public String getName()
	{
		return name;
	}
	
	public void setName(String setName)
	{
		name = setName;
	}
	
	public String getVersion()
	{
		return version;
	}
	
	public void setVersion(String setVersion)
	{
		version = setVersion;
	}

	@Override
	public boolean equals(Object sp){
		if(!(sp instanceof SoftwarePackage)){
			return(false);
		}
		
		SoftwarePackage sopa=(SoftwarePackage)sp;
		
		if(this.name.compareToIgnoreCase(sopa.getName())!=0){
			return(false);
		}
		if(this.version.compareToIgnoreCase(sopa.getVersion())!=0){
			return(false);
		}
		
		return(true);
	}
}
